package com.sudo.dao.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sudo.dao.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;
@Data
@Table(name = "sys_server_node")
@EqualsAndHashCode(callSuper = true)
public class SysServerNode extends BaseEntity {
    @Id
    private Integer id;

    @Column(name = "server")
    private String server;

    @Column(name = "status")
    private String status;

    @Column(name = "type")
    private String type;

    @Column(name = "note")
    private String note;

    @Column(name = "status_update_time")
    private LocalDateTime statusUpdateTime;

    public interface Field{
        String id = "id";
        String server = "server";
        String status = "status";
        String type = "type";
        String note = "note";
        String statusUpdateTime = "statusUpdateTime";
    }

}
